
import torch as t
import torch.nn as nn
import torch.nn.functional as F
from torch.nn.modules.activation import Sigmoid



class BlackUpsample_one(nn.Module):
    
    def __init__(self, inplane, outplane):
        super(BlackUpsample_one, self).__init__()
        
        self.model = nn.Sequential(
            nn.Conv2d(inplane, outplane, (1, 1), stride=1),
            nn.BatchNorm2d(outplane),
            nn.ReLU(inplace=True),
            nn.ConvTranspose2d(outplane, outplane, (4, 4), stride=2, padding=1, bias=False),
            nn.BatchNorm2d(outplane),
            nn.ReLU(inplace=True), #
        )
        
    def forward(self, x):
        return self.model(x)